package com.tianhua.javs.core;

import com.alibaba.fastjson.JSON;
import org.apache.commons.io.FileUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.util.ResourceUtils;

import java.io.File;
import java.io.IOException;

@SpringBootApplication
public class CoreApplication {

    public static void main(String[] args) {
        File file = null;
        try {
            file = ResourceUtils.getFile("classpath:CalculateService.javs");
            JSON.toJSONString(FileUtils.readLines(file,"UTF-8"));

        } catch (IOException e) {
            e.printStackTrace();
        }
        SpringApplication.run(CoreApplication.class, args);
    }

}
